import React, { PureComponent } from "react"
import Styles from '@/scss/rights.scss'
//引入常量
import CONSTS from "@/inits/consts"
//列表回收站清空按钮组件
class ListRecycle extends PureComponent<Iprops, any>{
  /* 判断是否是回收页面,如果是回收,将渲染出清空回收站 */
  render() {
    return (<div>
      { this.props.isShow == CONSTS.ISSHOW.RECYCLE ? <div className={Styles.clear_recycle}><div onClick={() => { this.props.handleClearRecyle() }}>清空回收站</div></div> : <div></div>}
    </div>)
  }

}
//必须传入isShow与清空回收站方法
type Iprops = {
  isShow: string,
  handleClearRecyle(): void
}
export default ListRecycle